import { IMDSkillConfig } from "../config/SkillConfig"
import UnitX from "../entity/UnitX"


export default class SkillExecutor {

    public  static execIMDSkillById(ua:UnitX,skillId:string){
        let skillConfig=IMDSkillConfig[skillId]
        if(skillConfig==undefined){
            console.log("[ERROR]无法找到正确的技能配置，",skillId)
            return
        }
        let skillInst=new skillConfig.impClass()
        skillInst.execDmgSkill(ua,skillId,skillConfig)
    }

}